{include file="public/head"/}
<div class="layui-fluid" id="LAY-app-message">
    <div class="layui-card">
        <div class="layui-card-header">权限列表</div>
        <div class="layui-card-body layui-text">
            <div class="clt-auth-btns" style="margin-bottom: 10px;">
                <button class="layui-btn layui-btn-sm" data-events="add">添加权限</button>
            </div>
            <table class="layui-table" id="list" lay-filter="list"></table>
        </div>
    </div>
</div>
{include file="public/foot"/}
<script type="text/html" id="icon">
    <i class="layui-icon {{d.icon}}"></i>
</script>
<script type="text/html" id="auth">
    <input type="checkbox" name="authopen" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="authopen" {{d.authopen == 1 ? 'checked' : ''}}>
</script>
<script type="text/html" id="rule_status">
    <input type="checkbox" name="menustatus" value="{{d.id}}" lay-skin="switch" lay-text="显示|隐藏" lay-filter="menustatus" {{d.menustatus == 1 ? 'checked' : ''}}>
</script>
<script type="text/html" id="log_status">
    <input type="checkbox" name="log" value="{{d.id}}" lay-skin="switch" lay-text="记录|不记录" lay-filter="log" {{d.log == 1 ? 'checked' : ''}}>
</script>
<script type="text/html" id="rule_action">
    <button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="auth_add">添加</button>
    <button class="layui-btn layui-btn-xs" lay-event="auth_edit">编辑</button>
    <button class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del_btn">删除</button>
</script>
<script>
    layui.config({
        base: '__LAYADMIN__/',
        version: true
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'auth']);
</script>
</body>
</html>